
package com.zhu.salesmanagement;

import com.zhu.location.R;
import com.zhu.salesmanagement.models.VisitTaskInfo;
import com.zhu.salesmanagement.views.ImportantInfoView;
import com.zhu.salesmanagement.views.ProductInfoListView;

import android.app.Activity;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;

public class InputMessageActivity extends Activity {

    private VisitTaskInfo mVisitTaskInfo = null;
    private ImportantInfoView mImportantInfoView = null;
    private int mType = 1;
    private String mProduckType;
    private long mDBId = ProductInfoListView.INVALID_VALUE;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);

        mType = getIntent().getIntExtra("type", 1);
        mProduckType = getIntent().getStringExtra("protype");
        mDBId = getIntent().getLongExtra("dbid", ProductInfoListView.INVALID_VALUE);
        Parcelable parcelable = getIntent().getParcelableExtra("info");
        mVisitTaskInfo = (VisitTaskInfo) parcelable;

        LayoutInflater mInflater = getLayoutInflater();
        mImportantInfoView = (ImportantInfoView) mInflater.inflate(
                R.layout.importantinfo_view, null);

        setContentView(mImportantInfoView);

        mImportantInfoView.initData(mVisitTaskInfo, this, mType, mProduckType, mDBId);
    }

    @Override
    protected void onStart() {
        super.onStart();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

}
